﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DAO;
using DTO;

namespace BUS
{
     public class HangGuiBUS
    {
         public DataTable loadhang()
         {
             HangGuiDAO load = new HangGuiDAO();
             DataTable dt = load.LayDSHang();
             return dt;
         }
        
         public DataTable loadma()
         {
             HangGuiDAO load = new HangGuiDAO();
             DataTable dt = load.loadmancc();
             return dt;
         }
         public DataTable loadten(int ma)
         {
             HangGuiDAO bus = new HangGuiDAO();
             DataTable dt = bus.loadhoa(ma);
             return dt;
         }
         public void them(HangGuiDTO hang)
         {
             HangGuiDAO bus = new HangGuiDAO();
             bus.ThemHangGui(hang);
         }
        
         public void xoa(int ma)
         {
             HangGuiDAO bus = new HangGuiDAO();
             bus.Xoa(ma);
         }
         public DataTable loadtextbox(int ma)
         {
             HangGuiDAO load = new HangGuiDAO();
             DataTable dt = load.loadtext(ma);
             return dt;
         }
    }
}
